import {request, config} from 'utils'
import * as commonService from "utils/services";

const {api} = config
const {lwjRecharge, userFinancialRecharge, financialPay, financialAccountBalance, userTenant} = api

export async function tenantList(params) {
  const url = `${userFinancialRecharge}/list`;
  return request({url: url, method: 'POST', data: {}})
}

export async function create(params) {
  const url = `${userFinancialRecharge}/create`;
  return request({url: url, method: 'POST', data: params})
}

export async function createOutlineBillRecord(params) {
  const url = `${lwjRecharge}/createBillRecord`;
  return request({url: url, method: 'PUT', data: params})
}
export async function getRechargeReceiptPath(params) {
  const url = `${financialPay}/getRechargeReceiptPath`;
  return request({url: url, method: 'PUT', data: params})
}

export async function getTargetMoney(params) {
  const url = `${financialAccountBalance}/tenantOverall`;
  return request({url: url, method: 'GET', data: params})
}

export async function currentTenants(params) {
  const url = `${userTenant}/currentTenant`;
  return request({url: url, method: 'GET', data: params})
}
